using System;
using System.Collections.Generic;
using System.Text;

namespace Dogfight2008
{
  public class TweakConfig
  {
    Dictionary<string, double> properties = new Dictionary<string, double>();

    public double GetPropertyValue(string property, double defaultValue)
    {
      if (!properties.ContainsKey(property))
        properties[property] = defaultValue;
      return properties[property];
    }

    public List<string> GetProperties()
    {
      return new List<string>(properties.Keys);
    }

    public void SetPropertyValue(string property, double value)
    {
      if (!properties.ContainsKey(property))
        throw new Exception("Expected a property which has been Get'ed!");
      properties[property] = value;
    }
  }
}
